import 'package:wanxiang_app/generated/json/base/json_field.dart';
import 'package:wanxiang_app/generated/json/order_list_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class OrderListEntity {
	late int code;
	late String msg;
	late List<OrderListData> data;

	OrderListEntity();

	factory OrderListEntity.fromJson(Map<String, dynamic> json) => $OrderListEntityFromJson(json);

	Map<String, dynamic> toJson() => $OrderListEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class OrderListData {
	late int id;
	@JSONField(name: "channel_id")
	late int channelId;
	late String title;
	@JSONField(name: "sell_price")
	late String sellPrice;
	@JSONField(name: "tra_time")
	late String traTime;
	@JSONField(name: "update_time")
	late String updateTime;
	late int status;
	late String guid;
	@JSONField(name: "is_indulge")
	late int isIndulge;
	@JSONField(name: "is_msg")
	String isMsg = '';
	@JSONField(name: "is_bystages")
	 String isBystages = '';
	@JSONField(name: "is_baopei")
	late int isBaopei ;

	@JSONField(name: "category_text")
	late String categoryText;
	@JSONField(name: "img_url")
	late String imgUrl;
	@JSONField(name: "game_password")
	late String gamePassword;
	@JSONField(name: "reality_price")
	late int realityPrice;
	late String paycode;
	@JSONField(name: "game_account")
	late String gameAccount;
	@JSONField(name: "role_text")
	 String roleText='';

	@JSONField(name: "team_id")
	 String teamId="";


	OrderListData();

	factory OrderListData.fromJson(Map<String, dynamic> json) => $OrderListDataFromJson(json);

	Map<String, dynamic> toJson() => $OrderListDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}